package com.wh.beans.model;

public class FieldModel {
	/**
	 * 表名
	 */
	private String tableName;
	/**
	 * 字段名
	 */
	private String fieldName;
	/**
	 * 字段类型
	 */
	private String dataType ;
	/**
	 * 是否允许空
	 */
	private String allowEmpty = "NULL";
	/**
	 * 默认值
	 */
	private String defaultValue;
	/**
	 * 注释
	 */
	private String comment;
	/**
	 * 是否唯一
	 */
	private Boolean unique = false;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
		if (comment == null || comment == "") {
			comment = fieldName;
		}
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getAllowEmpty() {
		return allowEmpty;
	}

	public void setAllowEmpty(String allowEmpty) {
		this.allowEmpty = allowEmpty;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Boolean getUnique() {
		return unique;
	}

	public void setUnique(Boolean unique) {
		this.unique = unique;
	}

}
